import axios from 'axios'
import { ElMessage, ElMessageBox } from 'element-plus'

const http = axios.create({
    timeout:5000,
    baseURL:'/api'
})

http.interceptors.request.use(config => {
    return config;
},err => {
    return Promise.reject(err);
})

http.interceptors.response.use(res => {
    return res;
},err => {
    return Promise.reject(err)
})


export default http